# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ja3
pkgver=117.cb29184
pkgrel=9
pkgdesc='Standard for creating SSL client fingerprints in an easy to produce and shareable way.'
arch=('any')
groups=('blackarch' 'blackarch-crypto' 'blackarch-crypto' 'blackarch-misc')
url='https://github.com/salesforce/ja3'
license=('BSD')
depends=('python' 'python-dpkt')
makedepends=('python-setuptools' 'git')
source=("git+https://github.com/salesforce/$pkgname.git")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  sed -i "s/==1.9.1//g" python/requirements.txt
}

build() {
  cd "$pkgname/python"

  python setup.py build
}

package() {
  cd "$pkgname/python"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

